<?php
$tdatatbl_hoat_dong_doan_the=array();
	$tdatatbl_hoat_dong_doan_the[".NumberOfChars"]=80; 
	$tdatatbl_hoat_dong_doan_the[".ShortName"]="tbl_hoat_dong_doan_the";
	$tdatatbl_hoat_dong_doan_the[".OwnerID"]="";
	$tdatatbl_hoat_dong_doan_the[".OriginalTable"]="tbl_hoat_dong_doan_the";


	
//	field labels
$fieldLabelstbl_hoat_dong_doan_the = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_hoat_dong_doan_the["English"]=array();
	$fieldToolTipstbl_hoat_dong_doan_the["English"]=array();
	$fieldLabelstbl_hoat_dong_doan_the["English"]["id"] = "Id";
	$fieldToolTipstbl_hoat_dong_doan_the["English"]["id"] = "";
	$fieldLabelstbl_hoat_dong_doan_the["English"]["ten_hoat_dong"] = "Ten Hoat Dong";
	$fieldToolTipstbl_hoat_dong_doan_the["English"]["ten_hoat_dong"] = "";
	$fieldLabelstbl_hoat_dong_doan_the["English"]["hinh_anh"] = "Hinh Anh";
	$fieldToolTipstbl_hoat_dong_doan_the["English"]["hinh_anh"] = "";
	$fieldLabelstbl_hoat_dong_doan_the["English"]["mo_ta_ngan_gon"] = "Mo Ta Ngan Gon";
	$fieldToolTipstbl_hoat_dong_doan_the["English"]["mo_ta_ngan_gon"] = "";
	$fieldLabelstbl_hoat_dong_doan_the["English"]["mo_ta_chi_tiet"] = "Mo Ta Chi Tiet";
	$fieldToolTipstbl_hoat_dong_doan_the["English"]["mo_ta_chi_tiet"] = "";
	$fieldLabelstbl_hoat_dong_doan_the["English"]["ma_loai_hoat_dong_doan_the"] = "Ma Loai Hoat Dong Doan The";
	$fieldToolTipstbl_hoat_dong_doan_the["English"]["ma_loai_hoat_dong_doan_the"] = "";
	$fieldLabelstbl_hoat_dong_doan_the["English"]["ten_loai_hoat_dong_doan_the"] = "Ten Loai Hoat Dong Doan The";
	$fieldToolTipstbl_hoat_dong_doan_the["English"]["ten_loai_hoat_dong_doan_the"] = "";
	if (count($fieldToolTipstbl_hoat_dong_doan_the["English"])){
		$tdatatbl_hoat_dong_doan_the[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_hoat_dong_doan_the[".NCSearch"]=true;

	

$tdatatbl_hoat_dong_doan_the[".shortTableName"] = "tbl_hoat_dong_doan_the";
$tdatatbl_hoat_dong_doan_the[".nSecOptions"] = 0;
$tdatatbl_hoat_dong_doan_the[".recsPerRowList"] = 1;	
$tdatatbl_hoat_dong_doan_the[".tableGroupBy"] = "0";
$tdatatbl_hoat_dong_doan_the[".mainTableOwnerID"] = "";
$tdatatbl_hoat_dong_doan_the[".moveNext"] = 1;




$tdatatbl_hoat_dong_doan_the[".showAddInPopup"] = false;

$tdatatbl_hoat_dong_doan_the[".showEditInPopup"] = false;

$tdatatbl_hoat_dong_doan_the[".showViewInPopup"] = false;


$tdatatbl_hoat_dong_doan_the[".fieldsForRegister"] = array();

$tdatatbl_hoat_dong_doan_the[".listAjax"] = false;

	$tdatatbl_hoat_dong_doan_the[".audit"] = false;

	$tdatatbl_hoat_dong_doan_the[".locking"] = false;
	
$tdatatbl_hoat_dong_doan_the[".listIcons"] = true;
$tdatatbl_hoat_dong_doan_the[".edit"] = true;
$tdatatbl_hoat_dong_doan_the[".inlineEdit"] = true;
$tdatatbl_hoat_dong_doan_the[".view"] = true;

$tdatatbl_hoat_dong_doan_the[".exportTo"] = true;

$tdatatbl_hoat_dong_doan_the[".printFriendly"] = true;

$tdatatbl_hoat_dong_doan_the[".delete"] = true;

$tdatatbl_hoat_dong_doan_the[".showSimpleSearchOptions"] = false;

$tdatatbl_hoat_dong_doan_the[".showSearchPanel"] = true;


$tdatatbl_hoat_dong_doan_the[".isUseAjaxSuggest"] = true;

$tdatatbl_hoat_dong_doan_the[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_hoat_dong_doan_the[".addPageEvents"] = false;

$tdatatbl_hoat_dong_doan_the[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_hoat_dong_doan_the[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_hoat_dong_doan_the[".isUseTimeForSearch"] = false;

$tdatatbl_hoat_dong_doan_the[".isUseiBox"] = false;



$tdatatbl_hoat_dong_doan_the[".isUseInlineAdd"] = true;

$tdatatbl_hoat_dong_doan_the[".isUseInlineEdit"] = true;
$tdatatbl_hoat_dong_doan_the[".isUseInlineJs"] = $tdatatbl_hoat_dong_doan_the[".isUseInlineAdd"] || $tdatatbl_hoat_dong_doan_the[".isUseInlineEdit"];

$tdatatbl_hoat_dong_doan_the[".allSearchFields"] = array();

$tdatatbl_hoat_dong_doan_the[".globSearchFields"][] = "ten_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_hoat_dong", $tdatatbl_hoat_dong_doan_the[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "ten_hoat_dong";	
}
$tdatatbl_hoat_dong_doan_the[".globSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hoat_dong_doan_the[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_hoat_dong_doan_the[".globSearchFields"][] = "mo_ta_ngan_gon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon", $tdatatbl_hoat_dong_doan_the[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "mo_ta_ngan_gon";	
}
$tdatatbl_hoat_dong_doan_the[".globSearchFields"][] = "ma_loai_hoat_dong_doan_the";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_loai_hoat_dong_doan_the", $tdatatbl_hoat_dong_doan_the[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "ma_loai_hoat_dong_doan_the";	
}
$tdatatbl_hoat_dong_doan_the[".globSearchFields"][] = "ten_loai_hoat_dong_doan_the";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_loai_hoat_dong_doan_the", $tdatatbl_hoat_dong_doan_the[".allSearchFields"]))
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "ten_loai_hoat_dong_doan_the";	
}


$tdatatbl_hoat_dong_doan_the[".googleLikeFields"][] = "id";
$tdatatbl_hoat_dong_doan_the[".googleLikeFields"][] = "ten_hoat_dong";
$tdatatbl_hoat_dong_doan_the[".googleLikeFields"][] = "hinh_anh";
$tdatatbl_hoat_dong_doan_the[".googleLikeFields"][] = "mo_ta_ngan_gon";
$tdatatbl_hoat_dong_doan_the[".googleLikeFields"][] = "ma_loai_hoat_dong_doan_the";
$tdatatbl_hoat_dong_doan_the[".googleLikeFields"][] = "ten_loai_hoat_dong_doan_the";



$tdatatbl_hoat_dong_doan_the[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_hoat_dong_doan_the[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "id";	
}
$tdatatbl_hoat_dong_doan_the[".advSearchFields"][] = "ten_hoat_dong";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_hoat_dong", $tdatatbl_hoat_dong_doan_the[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "ten_hoat_dong";	
}
$tdatatbl_hoat_dong_doan_the[".advSearchFields"][] = "hinh_anh";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("hinh_anh", $tdatatbl_hoat_dong_doan_the[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "hinh_anh";	
}
$tdatatbl_hoat_dong_doan_the[".advSearchFields"][] = "mo_ta_ngan_gon";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_ngan_gon", $tdatatbl_hoat_dong_doan_the[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "mo_ta_ngan_gon";	
}
$tdatatbl_hoat_dong_doan_the[".advSearchFields"][] = "mo_ta_chi_tiet";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("mo_ta_chi_tiet", $tdatatbl_hoat_dong_doan_the[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "mo_ta_chi_tiet";	
}
$tdatatbl_hoat_dong_doan_the[".advSearchFields"][] = "ma_loai_hoat_dong_doan_the";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ma_loai_hoat_dong_doan_the", $tdatatbl_hoat_dong_doan_the[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "ma_loai_hoat_dong_doan_the";	
}
$tdatatbl_hoat_dong_doan_the[".advSearchFields"][] = "ten_loai_hoat_dong_doan_the";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ten_loai_hoat_dong_doan_the", $tdatatbl_hoat_dong_doan_the[".allSearchFields"])) 
{
	$tdatatbl_hoat_dong_doan_the[".allSearchFields"][] = "ten_loai_hoat_dong_doan_the";	
}

$tdatatbl_hoat_dong_doan_the[".isTableType"] = "list";


	

$tdatatbl_hoat_dong_doan_the[".isDisplayLoading"] = true;

$tdatatbl_hoat_dong_doan_the[".isResizeColumns"] = false;





$tdatatbl_hoat_dong_doan_the[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_hoat_dong_doan_the[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_hoat_dong_doan_the[".orderindexes"] = array();

$tdatatbl_hoat_dong_doan_the[".sqlHead"] = "SELECT tbl_hoat_dong_doan_the.id,  tbl_hoat_dong_doan_the.ten_hoat_dong,  tbl_hoat_dong_doan_the.hinh_anh,  tbl_hoat_dong_doan_the.mo_ta_ngan_gon,  tbl_hoat_dong_doan_the.mo_ta_chi_tiet,  tbl_hoat_dong_doan_the.ma_loai_hoat_dong_doan_the,  tbl_loai_hoat_dong_doan_the.ten_loai_hoat_dong_doan_the";
$tdatatbl_hoat_dong_doan_the[".sqlFrom"] = "FROM tbl_hoat_dong_doan_the  INNER JOIN tbl_loai_hoat_dong_doan_the ON tbl_loai_hoat_dong_doan_the.id = tbl_hoat_dong_doan_the.ma_loai_hoat_dong_doan_the";
$tdatatbl_hoat_dong_doan_the[".sqlWhereExpr"] = "";
$tdatatbl_hoat_dong_doan_the[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_hoat_dong_doan_the[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_hoat_dong_doan_the[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_hoat_dong_doan_the[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_hoat_dong_doan_the";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "tbl_hoat_dong_doan_the.id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_hoat_dong_doan_the["id"]=$fdata;
//	ten_hoat_dong
	$fdata = array();
	$fdata["strName"] = "ten_hoat_dong";
	$fdata["ownerTable"] = "tbl_hoat_dong_doan_the";
		$fdata["Label"]="Ten Hoat Dong"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_hoat_dong";
	
		$fdata["FullName"]= "tbl_hoat_dong_doan_the.ten_hoat_dong";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_doan_the["ten_hoat_dong"]=$fdata;
//	hinh_anh
	$fdata = array();
	$fdata["strName"] = "hinh_anh";
	$fdata["ownerTable"] = "tbl_hoat_dong_doan_the";
		$fdata["Label"]="Hinh Anh"; 
	
		
		$fdata["LinkPrefix"]="upload/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Document upload";
	$fdata["ViewFormat"]= "Document Download";
	
		
		
		
		
		
	$fdata["GoodName"]= "hinh_anh";
	
		$fdata["FullName"]= "tbl_hoat_dong_doan_the.hinh_anh";
	
		
		
		
		
		
			$fdata["UploadFolder"]="upload"; 
		$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_doan_the["hinh_anh"]=$fdata;
//	mo_ta_ngan_gon
	$fdata = array();
	$fdata["strName"] = "mo_ta_ngan_gon";
	$fdata["ownerTable"] = "tbl_hoat_dong_doan_the";
		$fdata["Label"]="Mo Ta Ngan Gon"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "mo_ta_ngan_gon";
	
		$fdata["FullName"]= "tbl_hoat_dong_doan_the.mo_ta_ngan_gon";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_doan_the["mo_ta_ngan_gon"]=$fdata;
//	mo_ta_chi_tiet
	$fdata = array();
	$fdata["strName"] = "mo_ta_chi_tiet";
	$fdata["ownerTable"] = "tbl_hoat_dong_doan_the";
		$fdata["Label"]="Mo Ta Chi Tiet"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "mo_ta_chi_tiet";
	
		$fdata["FullName"]= "tbl_hoat_dong_doan_the.mo_ta_chi_tiet";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 5;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_doan_the["mo_ta_chi_tiet"]=$fdata;
//	ma_loai_hoat_dong_doan_the
	$fdata = array();
	$fdata["strName"] = "ma_loai_hoat_dong_doan_the";
	$fdata["ownerTable"] = "tbl_hoat_dong_doan_the";
		$fdata["Label"]="Ma Loai Hoat Dong Doan The"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="ten_loai_hoat_dong_doan_the";
				$fdata["LookupTable"]="tbl_loai_hoat_dong_doan_the";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ma_loai_hoat_dong_doan_the";
	
		$fdata["FullName"]= "tbl_hoat_dong_doan_the.ma_loai_hoat_dong_doan_the";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 6;
				
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_doan_the["ma_loai_hoat_dong_doan_the"]=$fdata;
//	ten_loai_hoat_dong_doan_the
	$fdata = array();
	$fdata["strName"] = "ten_loai_hoat_dong_doan_the";
	$fdata["ownerTable"] = "tbl_loai_hoat_dong_doan_the";
		$fdata["Label"]="Ten Loai Hoat Dong Doan The"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ten_loai_hoat_dong_doan_the";
	
		$fdata["FullName"]= "tbl_loai_hoat_dong_doan_the.ten_loai_hoat_dong_doan_the";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_hoat_dong_doan_the["ten_loai_hoat_dong_doan_the"]=$fdata;

	
$tables_data["tbl_hoat_dong_doan_the"]=&$tdatatbl_hoat_dong_doan_the;
$field_labels["tbl_hoat_dong_doan_the"] = &$fieldLabelstbl_hoat_dong_doan_the;
$fieldToolTips["tbl_hoat_dong_doan_the"] = &$fieldToolTipstbl_hoat_dong_doan_the;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_hoat_dong_doan_the"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_hoat_dong_doan_the"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="tbl_loai_hoat_dong_doan_the";
	$masterTablesData["tbl_hoat_dong_doan_the"][$mIndex] = array(
		  "mDataSourceTable"=>"tbl_loai_hoat_dong_doan_the"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "tbl_loai_hoat_dong_doan_the"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$masterTablesData["tbl_hoat_dong_doan_the"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["tbl_hoat_dong_doan_the"][$mIndex]["detailKeys"][]="ma_loai_hoat_dong_doan_the";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto108=array();
$proto108["m_strHead"] = "SELECT";
$proto108["m_strFieldList"] = "tbl_hoat_dong_doan_the.id,  tbl_hoat_dong_doan_the.ten_hoat_dong,  tbl_hoat_dong_doan_the.hinh_anh,  tbl_hoat_dong_doan_the.mo_ta_ngan_gon,  tbl_hoat_dong_doan_the.mo_ta_chi_tiet,  tbl_hoat_dong_doan_the.ma_loai_hoat_dong_doan_the,  tbl_loai_hoat_dong_doan_the.ten_loai_hoat_dong_doan_the";
$proto108["m_strFrom"] = "FROM tbl_hoat_dong_doan_the  INNER JOIN tbl_loai_hoat_dong_doan_the ON tbl_loai_hoat_dong_doan_the.id = tbl_hoat_dong_doan_the.ma_loai_hoat_dong_doan_the";
$proto108["m_strWhere"] = "";
$proto108["m_strOrderBy"] = "";
$proto108["m_strTail"] = "";
$proto109=array();
$proto109["m_sql"] = "";
$proto109["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto109["m_column"]=$obj;
$proto109["m_contained"] = array();
$proto109["m_strCase"] = "";
$proto109["m_havingmode"] = "0";
$proto109["m_inBrackets"] = "0";
$proto109["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto109);

$proto108["m_where"] = $obj;
$proto111=array();
$proto111["m_sql"] = "";
$proto111["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto111["m_column"]=$obj;
$proto111["m_contained"] = array();
$proto111["m_strCase"] = "";
$proto111["m_havingmode"] = "0";
$proto111["m_inBrackets"] = "0";
$proto111["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto111);

$proto108["m_having"] = $obj;
$proto108["m_fieldlist"] = array();
						$proto113=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_hoat_dong_doan_the"
));

$proto113["m_expr"]=$obj;
$proto113["m_alias"] = "";
$obj = new SQLFieldListItem($proto113);

$proto108["m_fieldlist"][]=$obj;
						$proto115=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_hoat_dong",
	"m_strTable" => "tbl_hoat_dong_doan_the"
));

$proto115["m_expr"]=$obj;
$proto115["m_alias"] = "";
$obj = new SQLFieldListItem($proto115);

$proto108["m_fieldlist"][]=$obj;
						$proto117=array();
			$obj = new SQLField(array(
	"m_strName" => "hinh_anh",
	"m_strTable" => "tbl_hoat_dong_doan_the"
));

$proto117["m_expr"]=$obj;
$proto117["m_alias"] = "";
$obj = new SQLFieldListItem($proto117);

$proto108["m_fieldlist"][]=$obj;
						$proto119=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_ngan_gon",
	"m_strTable" => "tbl_hoat_dong_doan_the"
));

$proto119["m_expr"]=$obj;
$proto119["m_alias"] = "";
$obj = new SQLFieldListItem($proto119);

$proto108["m_fieldlist"][]=$obj;
						$proto121=array();
			$obj = new SQLField(array(
	"m_strName" => "mo_ta_chi_tiet",
	"m_strTable" => "tbl_hoat_dong_doan_the"
));

$proto121["m_expr"]=$obj;
$proto121["m_alias"] = "";
$obj = new SQLFieldListItem($proto121);

$proto108["m_fieldlist"][]=$obj;
						$proto123=array();
			$obj = new SQLField(array(
	"m_strName" => "ma_loai_hoat_dong_doan_the",
	"m_strTable" => "tbl_hoat_dong_doan_the"
));

$proto123["m_expr"]=$obj;
$proto123["m_alias"] = "";
$obj = new SQLFieldListItem($proto123);

$proto108["m_fieldlist"][]=$obj;
						$proto125=array();
			$obj = new SQLField(array(
	"m_strName" => "ten_loai_hoat_dong_doan_the",
	"m_strTable" => "tbl_loai_hoat_dong_doan_the"
));

$proto125["m_expr"]=$obj;
$proto125["m_alias"] = "";
$obj = new SQLFieldListItem($proto125);

$proto108["m_fieldlist"][]=$obj;
$proto108["m_fromlist"] = array();
												$proto127=array();
$proto127["m_link"] = "SQLL_MAIN";
			$proto128=array();
$proto128["m_strName"] = "tbl_hoat_dong_doan_the";
$proto128["m_columns"] = array();
$proto128["m_columns"][] = "id";
$proto128["m_columns"][] = "ten_hoat_dong";
$proto128["m_columns"][] = "hinh_anh";
$proto128["m_columns"][] = "mo_ta_ngan_gon";
$proto128["m_columns"][] = "mo_ta_chi_tiet";
$proto128["m_columns"][] = "ma_loai_hoat_dong_doan_the";
$obj = new SQLTable($proto128);

$proto127["m_table"] = $obj;
$proto127["m_alias"] = "";
$proto129=array();
$proto129["m_sql"] = "";
$proto129["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto129["m_column"]=$obj;
$proto129["m_contained"] = array();
$proto129["m_strCase"] = "";
$proto129["m_havingmode"] = "0";
$proto129["m_inBrackets"] = "0";
$proto129["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto129);

$proto127["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto127);

$proto108["m_fromlist"][]=$obj;
												$proto131=array();
$proto131["m_link"] = "SQLL_INNERJOIN";
			$proto132=array();
$proto132["m_strName"] = "tbl_loai_hoat_dong_doan_the";
$proto132["m_columns"] = array();
$proto132["m_columns"][] = "id";
$proto132["m_columns"][] = "ten_loai_hoat_dong_doan_the";
$obj = new SQLTable($proto132);

$proto131["m_table"] = $obj;
$proto131["m_alias"] = "";
$proto133=array();
$proto133["m_sql"] = "tbl_loai_hoat_dong_doan_the.id = tbl_hoat_dong_doan_the.ma_loai_hoat_dong_doan_the";
$proto133["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_loai_hoat_dong_doan_the"
));

$proto133["m_column"]=$obj;
$proto133["m_contained"] = array();
$proto133["m_strCase"] = "= tbl_hoat_dong_doan_the.ma_loai_hoat_dong_doan_the";
$proto133["m_havingmode"] = "0";
$proto133["m_inBrackets"] = "0";
$proto133["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto133);

$proto131["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto131);

$proto108["m_fromlist"][]=$obj;
$proto108["m_groupby"] = array();
$proto108["m_orderby"] = array();
$obj = new SQLQuery($proto108);

$queryData_tbl_hoat_dong_doan_the = $obj;
$tdatatbl_hoat_dong_doan_the[".sqlquery"] = $queryData_tbl_hoat_dong_doan_the;

$tableEvents["tbl_hoat_dong_doan_the"] = new eventsBase;

?>
